<?php use_helper('I18N', 'Date') ?>
<?php include_partial('asset/assets') ?>
<div id="sf_admin_container">
  <h1><?php echo __('Edit Asset', array(), 'messages') ?><?php if($asset->AssetType->getSlug()=="content"):?><input type="button" value="Duplicar Asset" name="Duplicar Asset" style="float: right;" onclick="self.location.href='<?php echo url_for("homepage")?>asset/<?php echo $asset->getId()?>/duplicate';" /><?php endif;?></h1>

  <?php include_partial('asset/flashes') ?>

  <div id="sf_admin_header">
    <?php include_partial('asset/form_header', array('asset' => $asset, 'form' => $form, 'configuration' => $configuration)) ?>
  </div>

  <div id="sf_admin_content">
    <?php include_partial('asset/form', array('asset' => $asset, 'form' => $form, 'configuration' => $configuration, 'helper' => $helper)) ?>
  </div>

  <div id="sf_admin_footer">
    <?php include_partial('asset/form_footer', array('asset' => $asset, 'form' => $form, 'configuration' => $configuration)) ?>
  </div>
</div>
